#ifndef _DELETE_TIMER_H_
#define _DELETE_TIMER_H_

#ifndef TRUE
#define TRUE 1
#endif

#ifndef FALSE
#define FALSE !TRUE
#endif

#include <pthread.h>
#include <stdlib.h>
#include <string.h>
#include <file_cache.h>

#define DEFAULT_TIME_TO_LIVE 60 * 30 // thirty minutes (in seconds)
#define DEFAULT_TIMER_SLEEP 3 // how often the thread will wake up (in seconds)

// passed to the timer thread start function
struct timer_thread_info
{
    struct file_entry_list_t* list; // the file cache
    struct flache_vol_t* volume;
    int* cancel;                // set to true to stop the thread.
};

void *delete_timer_start( void* ptr );

#endif
